package cn.afactory.tygz.net;

/**
 * Created with Android Studio.
 * Title:Urls
 * Description:
 * Copyright:Copyright (c) 2014
 * Company:中国平安健康保险有限公司
 * Author:Alice
 * Date:15/9/8
 * Time:下午2:37
 * Version 1.0
 */
public class Urls {
    public static final String BASE_URL = "http://121.43.117.83/api/";

    public static final String URL_LOGINED_SUFFIX =  "noCheck=1&token=%s&t=%s&s=%s";
    //登出
    public static final String URL_LOGOUT = BASE_URL + "user/doLogout?" + URL_LOGINED_SUFFIX + "&userId=%s";
    //登录
    public static final String URL_LOGIN = BASE_URL + "user/login?telphone=%s&password=%s&t=%s&s=%s&lng=%s&lat=%s";
    //获取动态验证码
    public static final String URL_REQUEST_DYNAMIC_CODE = BASE_URL + "user/securityCode?telphone=%s&t=%s&&s=%s";
    //注册
    public static final String URL_REGISTER = BASE_URL + "user/register?telphone=%s&password=%s&code=%s&t=%s&s=%s";
    //重置密码
    public static final String URL_RESET_PWD = BASE_URL + "user/resetPwd?telphone=%s&password=%s&code=%s&t=%s&s=%s";
    //文件上传
    public static final String URL_UPLOAD_FILES = BASE_URL + "user/Uploadfile";
    //修改用户资料
    public static final String URL_UPDATE_USER_INFO = BASE_URL + "user/updateUserInfo?noCheck=1&token=%s&id=%s&t=%s&s=%s";
    //获取用户资料
    public static final String URL_GET_USER_INFO = BASE_URL + "user/getUserInfo?noCheck=1&token=%s&userId=%s&t=%s&s=%s";
    //获取附近的事
    public static final String URL_GET_NEAR_BY_FORUMS = BASE_URL + "user/lbsDynamic?" + URL_LOGINED_SUFFIX +
            "&queryProxy[lng]=%s&queryProxy[lat]=%s&userId=%s&page=%s&rows=%s";
    //获取附近的人
    public static final String URL_GET_NEAR_BY_PEOPLE = BASE_URL + "user/lbsPeople?" + URL_LOGINED_SUFFIX +
            "&userId=%s&queryProxy[lng]=%s&queryProxy[lat]=%s&page=%s&rows=%s";
    //发布动态
    public static final String URL_PUBLISH_FORUM = BASE_URL + "user/doPublish?" + URL_LOGINED_SUFFIX +
            "&addUserId=%s&content=%s";
    //点赞
    public static final String URL_FORUM_PRASIZE = BASE_URL + "user/doAgree?noCheck=1&token=%s&uid=%s&postId=%s&t=%s&s=%s";
    //获取话题列表（0 代表 普通频道  1代表热门频道）
    public static final String URL_GET_TOPIC_LIST = BASE_URL + "user/getTopic?noCheck=1&token=%s&type=%s&t=%s&s=%s";
    //获取点赞列表
    public static final String URL_GET_PRASIZE_LIST = BASE_URL + "user/obtainAgreeList?noCheck=1&userId=%s&token=%s&postId=%s&page=%s&rows=%s&t=%s&s=%s";

    //评论帖子
    public static final String URL_POST_COMMENT = BASE_URL + "user/doCommentPost?" + URL_LOGINED_SUFFIX + "&userId=%s&postId=%s&content=%s";
    //获取评论列表
    public static final String URL_GET_COMMENT_LIST = BASE_URL + "user/obtainPostComment?noCheck=1&token=%s&postId=%s&page=%s&rows=%s&t=%s&s=%s";
    //上传相册
    public static final String URL_UPLOAD_ALBUM = BASE_URL + "user/userRelAlbum?noCheck=1&token=%s&userId=%s&fileIds=%s&t=%s&s=%s";
    //删除文件
    public static final String URL_DELETE_FILE= BASE_URL + "user/doDelFile?" + URL_LOGINED_SUFFIX + "&fileId=%s";
    //获取个人相册
    public static final String URL_GET_ALBUMS = BASE_URL + "user/obtainAlbum?noCheck=1&token=%s&userId=%s&t=%s&s=%s";
    //获取帖子详情
    public static final String URL_GET_FORUM_DETAIL = BASE_URL + "user/obtainPostDetail?" + URL_LOGINED_SUFFIX +
            "&userId=%s&postId=%s";
    //获取所关注的话题列表
    public static final String URL_GET_FOCUS_TOPIC_LIST = BASE_URL + "user/obtainTopicList?noCheck=1&token=%s&userId=%s&type=%s&page=%s&rows=%s&t=%s&s=%s";
    //发送私信
    public static final String URL_SEND_MSG = BASE_URL + "user/sendPrivateMsg?noCheck=1&token=%s&receiveId=%s&sendId=%s&content=%s&t=%s&s=%s";
    //关注和取消关注用户
    public static final String URL_FOCUS_USER = BASE_URL + "user/doFocus?" + URL_LOGINED_SUFFIX + "&focusUserId=%s&userId=%s&type=%s";
    //关注和取消话题
    public static final String URL_FOCUS_TOPIC = BASE_URL + "user/doFocusTopic?" + URL_LOGINED_SUFFIX + "&topicId=%s&userId=%s&type=%s";
    //拉黑和取消拉黑
    public static final String URL_BLACK_USER = BASE_URL + "user/doBlack?" + URL_LOGINED_SUFFIX + "&blackUserId=%s&userId=%s&type=%s";
    //获取拉黑列表
    public static final String URL_GET_BLACK_LIST = BASE_URL + "user/blackList?" + URL_LOGINED_SUFFIX + "&userId=%s&page=%s&rows=%s";
    //获取私信详情列表
    public static final String URL_GET_PRIVATE_MSG_LIST = BASE_URL + "user/obtainPrivateMsg?" + URL_LOGINED_SUFFIX + "&userId=%s&toUserId=%s&page=%s&rows=%s";
    //获取系统消息列表
    public static final String URL_GET_SYS_MSG_LIST = BASE_URL + "user/obtainSysList?" + URL_LOGINED_SUFFIX + "&userId=%s&page=%s&rows=%s&addTime=%s";
    //获取私信用户列表
    public static final String URL_GET_PRIVATE_LIST = BASE_URL + "user/obtainPrivateList?" + URL_LOGINED_SUFFIX + "&userId=%s&page=%s&rows=%s&addTime=%s";
    //获取我的粉丝和我关注的人的列表
    public static final String URL_GET_FRIENDS_LIST = BASE_URL + "user/obtainMyFriend?" + URL_LOGINED_SUFFIX + "&userId=%s&type=%s&page=%s&rows=%s";
    //获取我参与的帖子列表
    public static final String URL_GET_MY_JOINED_FORUMS_LIST = BASE_URL + "user/obtainDoPostList?" + URL_LOGINED_SUFFIX + "&userId=%s&page=%s&rows=%s";

    //餐饮列表
    public static final String URL_GET_FOOD_LIST = BASE_URL + "user/obtainFoodList?" + URL_LOGINED_SUFFIX + "&queryProxy[lat]=%s&queryProxy[lng]=%s" +
            "&page=%s&rows=%s";
    //公寓列表
    public static final String URL_GET_ROOM_LIST = BASE_URL + "user/obtainRoomList?" + URL_LOGINED_SUFFIX + "&queryProxy[lat]=%s&queryProxy[lng]=%s" +
            "&page=%s&rows=%s";
    //娱乐列表
    public static final String URL_GET_FUCK_LIST = BASE_URL + "user/obtainFuckList?" + URL_LOGINED_SUFFIX + "&queryProxy[lat]=%s&queryProxy[lng]=%s" +
            "&queryProxy[typeId]=%s&page=%s&rows=%s";
    //周边景点列表
    public static final String URL_GET_SPOT_LIST = BASE_URL + "user/obtainSpotList?" + URL_LOGINED_SUFFIX + "&queryProxy[lat]=%s&queryProxy[lng]=%s" +
            "&queryProxy[typeId]=%s&page=%s&rows=%s";
    //生活服务
    public static final String URL_GET_SERVICE_LIST = BASE_URL + "user/obtainServiceList?" + URL_LOGINED_SUFFIX + "&queryProxy[lat]=%s&queryProxy[lng]=%s" +
            "&queryProxy[typeId]=%s&page=%s&rows=%s";
    //二手物品列表
    public static final String URL_GET_SECONDS_LIST = BASE_URL + "user/obtainOldList?" + URL_LOGINED_SUFFIX + "&queryProxy[lat]=%s&queryProxy[lng]=%s" +
            "&queryProxy[typeId]=%s&queryProxy[sort]=%s&page=%s&rows=%s";
    //发布二手物品
    public static final String URL_PUBLISH_SECONDS = BASE_URL + "user/doPublishOld?" + URL_LOGINED_SUFFIX + "&userId=%s&lat=%s&lng=%s" +
            "&name=%s&price=%s&typeId=%s&tel=%s&adderss=%s&intro=%s&old=%s&fileId=%s";
    //服务类型
    public static final String URL_GET_SERVICE_TYPE = BASE_URL + "user/obtainServiceType?" + URL_LOGINED_SUFFIX + "&page=%s&rows=%s&type=%s";

    //话题搜索
    public static final String URL_SEARCH_TOPIC = BASE_URL + "user/doSearchTopic?" + URL_LOGINED_SUFFIX + "&page=%s&rows=%s&keyword=%s";
    //公司搜索
    public static final String URL_SEARCH_COMPANY = BASE_URL + "user/doSearchCompany?" + URL_LOGINED_SUFFIX + "&page=%s&rows=%s&keyword=%s";
    //获取话题详情
    public static final String URL_GET_TOPIC_DETAIL = BASE_URL + "user/obtainTopicById?" + URL_LOGINED_SUFFIX + "&topicId=%s";
    //我发布的二手物品列表
    public static final String URL_GET_MY_PUBLISH_SECOND_GOODS_LIST = BASE_URL + "user/obtainMyPublishOld?" + URL_LOGINED_SUFFIX + "&userId=%s&page=%s&rows=%s";

    //获取商品兑换列表
    public static final String URL_GET_EXCHANGE_GOODS_LIST = BASE_URL + "user/obtainMyPublishOld?" + URL_LOGINED_SUFFIX + "&page=%s&rows=%s";
    //工钱明细列表
    public static final String URL_GET_MONEY_PAIED_LIST = BASE_URL + "user/obtainMyPublishOld?" + URL_LOGINED_SUFFIX + "&page=%s&rows=%s";
    //兑换记录列表
    public static final String URL_GET_EXCHANGE_RECORD_LIST = BASE_URL + "user/obtainExchangeList?" + URL_LOGINED_SUFFIX + "&userId=%s&page=%s&rows=%s";
    //获取金币的列表接口
    public static final String URL_GET_MONET_LIST = BASE_URL + "user/obtainGetMoneyItem?" + URL_LOGINED_SUFFIX + "&page=%s&rows=%s";
    //应用更新
    public static final String URL_CHECK_APP_VERSION = BASE_URL + "user/doCheckVersion?" + URL_LOGINED_SUFFIX ;
    //获取话题详情帖子列表
    public static final String URL_GET_COMMENT_LIST_BY_TOPIC_ID = BASE_URL + "user/obtainPostByTopicId?" + URL_LOGINED_SUFFIX + "&topicId=%s&page=%s&rows=%s";
    //获取广告
    public static final String URL_GET_AD = BASE_URL + "user/obtainAdv?" + URL_LOGINED_SUFFIX + "&type=%s";

    //社区评论
    public static final String URL_POST_COMM_COMMENT = BASE_URL + "user/doComComment?" + URL_LOGINED_SUFFIX + "&userId=%s&id=%s&content=%s&type=%s";
    //社区评论列表
    public static final String URL_GET_COMM_COMMENT_LIST = BASE_URL + "user/obtainComComment?" + URL_LOGINED_SUFFIX + "&id=%s&page=%s&rows=%s&type=%s";
    //获取兑换商品
    public static final String URL_GET_SHOP = BASE_URL +"user/exchangeItemList?"+URL_LOGINED_SUFFIX;
    //兑换商品
    public static final String URL_GET_EXCHANGE = BASE_URL + "user/doExchange?" + URL_LOGINED_SUFFIX + "&userId=%s&itemId=%s&exchangeNum=1";
    //创建话题
    public static final String URL_CREATE_TOPIC = BASE_URL + "user/doCreateTopic?" + URL_LOGINED_SUFFIX + "&userId=%s&topicName=%s&topicDes=%s";
    //获取兑换记录
    public static final String URL_GET_RECORD = BASE_URL+"user/obtainExchangeList?"+ URL_LOGINED_SUFFIX +"&userId=%s&rows=%s&page=%s";

    public static final String URL_GET_DETAIL = BASE_URL+"user/obtainMyMoneyList?"+ URL_LOGINED_SUFFIX +"&userId=%s&rows=%s&page=%s";
    //获取公司员工列表
    public static final String URL_GET_COMPANY_LIST = BASE_URL + "user/obtainCompanyUserList?" + URL_LOGINED_SUFFIX + "&userId=%s&id=%s&rows=%s&page=%s";

}
